﻿namespace _028_Struct;

public struct Books
{
    public int bookId;
    public string title;
    public string author;
    public string subject;

    public void SetValue(int id, string t, string a, string s)
    {
        bookId = id;
        title = t;
        author = a;
        subject = s;
    }

    public void Display()
    {
        Console.WriteLine($"BookId:{bookId}");
        Console.WriteLine($"Titel:{title}");
        Console.WriteLine($"Author:{author}");
        Console.WriteLine($"Subject:{subject}");
    }
}